package io.xccit.pojo;

import lombok.Data;

/**
 * @author Xccit
 * @Date 2023-01-20
 * @Description
 */
@Data
public class User {
    private Integer id;
    private String name;
    public User(){
        System.out.println("实例化...");
    }
    public void setId(Integer id) {
        System.out.println("依赖注入...");
        this.id = id;
    }

    public void init(){
        System.out.println("User init...");
    }
    public void destroy(){
        System.out.println("User destroy...");
    }
}
